package com.coding.pojo;

import java.util.Objects;

/**
 * @auther wangchenghao
 * @date 2020/7/31
 **/
public class Userhistorypost {
    private History history;
    private Post post;
    private OssImages ossImages;

    public Userhistorypost(History history, Post post, OssImages ossImages) {
        this.history = history;
        this.post = post;
        this.ossImages = ossImages;
    }

    public Userhistorypost() {
    }

    public History getHistory() {
        return history;
    }

    public void setHistory(History history) {
        this.history = history;
    }

    public Post getPost() {
        return post;
    }

    public void setPost(Post post) {
        this.post = post;
    }

    public OssImages getOssImages() {
        return ossImages;
    }

    public void setOssImages(OssImages ossImages) {
        this.ossImages = ossImages;
    }

    @Override
    public String toString() {
        return "Userhistorypost{" +
                "history=" + history +
                ", post=" + post +
                ", ossImages=" + ossImages +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Userhistorypost that = (Userhistorypost) o;
        return Objects.equals(history, that.history) &&
                Objects.equals(post, that.post) &&
                Objects.equals(ossImages, that.ossImages);
    }

    @Override
    public int hashCode() {
        return Objects.hash(history, post, ossImages);
    }
}
